/***************************************************************
 * Name:      xgsof2textMain.h
 * Purpose:   Defines Application Frame
 * Author:    walnutcy (walnutcy@gmail.com)
 * Created:   2012-09-12
 * Copyright: walnutcy (weibo.com/walnutcy)
 * License:
 **************************************************************/

#ifndef XGSOF2TEXTMAIN_H
#define XGSOF2TEXTMAIN_H

//(*Headers(xgsof2textDialog)
#include <wx/sizer.h>
#include <wx/stattext.h>
#include <wx/textctrl.h>
#include <wx/statline.h>
#include <wx/choice.h>
#include <wx/button.h>
#include <wx/dialog.h>
//*)




class xgsof2textDialog: public wxDialog
{
    public:

        xgsof2textDialog(wxWindow* parent,wxWindowID id = -1);
        virtual ~xgsof2textDialog();

    public:

        void LogTxt(wxString str);
        void TipsCtrl(void);

        char  AppLib_digitValue(char ch);
        char  chars_2_byte(char* pIN);
        long  str_2_Bytes(wxString str, char* pData);
        wxString exeVersion(void);

    private:

        //(*Handlers(xgsof2textDialog)
        void OnQuit(wxCommandEvent& event);
        void OnAbout(wxCommandEvent& event);
        void Onm_Btt_ConvertClick(wxCommandEvent& event);
        //*)

        //(*Identifiers(xgsof2textDialog)
        static const long ID_STATICTEXT1;
        static const long ID_CHOICE_TYPE;
        static const long ID_BUTTON_CONVERT;
        static const long ID_STATICLINE1;
        static const long ID_BUTTON_ABOUT;
        static const long ID_BUTTON_QUIT;
        static const long ID_TEXTCTRL1;
        static const long ID_STATICTEXT_SAVEPATH;
        static const long ID_TEXTCTRL_TIPSINFO;
        //*)

        //(*Declarations(xgsof2textDialog)
        wxButton* m_Btt_Quit;
        wxButton* m_Btt_About;
        wxStaticText* StaticText1;
        wxBoxSizer* BoxSizer2;
        wxTextCtrl* m_txt_input;
        wxChoice* m_Choice_Type;
        wxTextCtrl* m_txt_log;
        wxStaticLine* StaticLine1;
        wxBoxSizer* BoxSizer1;
        wxButton* m_Btt_Convert;
        wxStaticText* m_txt_output;
        //*)

        DECLARE_EVENT_TABLE()
};

#endif // XGSOF2TEXTMAIN_H
